Optimal. Leaf size=89 \[ 2 i b^2 c \text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right )-2 i b^2 c \text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right )-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}-4 i b c \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.127538, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {4628, 4710, 4181, 2279, 2391} \[ 2 i b^2 c \text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right )-2 i b^2 c \text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right )-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}-4 i b c \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4628
Rule 4710
Rule 4181
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x^2} \, dx &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}-(2 b c) \int \frac{a+b \cos ^{-1}(c x)}{x \sqrt{1-c^2 x^2}} \, dx\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}+(2 b c) \operatorname{Subst}\left (\int (a+b x) \sec (x) \, dx,x,\cos ^{-1}(c x)\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}-4 i b c \left (a+b \cos ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )-\left (2 b^2 c\right ) \operatorname{Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\cos ^{-1}(c x)\right )+\left (2 b^2 c\right ) \operatorname{Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\cos ^{-1}(c x)\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}-4 i b c \left (a+b \cos ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )+\left (2 i b^2 c\right ) \operatorname{Subst}\left (\int \frac{\log (1-i x)}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )-\left (2 i b^2 c\right ) \operatorname{Subst}\left (\int \frac{\log (1+i x)}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x}-4 i b c \left (a+b \cos ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )+2 i b^2 c \text{Li}_2\left (-i e^{i \cos ^{-1}(c x)}\right )-2 i b^2 c \text{Li}_2\left (i e^{i \cos ^{-1}(c x)}\right )\\ \end{align*}
Mathematica [A] time = 0.207137, size = 134, normalized size = 1.51 \[ -\frac{b^2 \left (\cos ^{-1}(c x)^2-2 c x \left (i \left (\text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right )-\text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right )\right )+\cos ^{-1}(c x) \left (\log \left (1-i e^{i \cos ^{-1}(c x)}\right )-\log \left (1+i e^{i \cos ^{-1}(c x)}\right )\right )\right )\right )+a^2+2 a b \left (\cos ^{-1}(c x)-c x \tanh ^{-1}\left (\sqrt{1-c^2 x^2}\right )\right )}{x} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.053, size = 187, normalized size = 2.1 \begin{align*} -{\frac{{a}^{2}}{x}}-{\frac{{b}^{2} \left ( \arccos \left ( cx \right ) \right ) ^{2}}{x}}-2\,c{b}^{2}\arccos \left ( cx \right ) \ln \left ( 1+i \left ( cx+i\sqrt{-{c}^{2}{x}^{2}+1} \right ) \right ) +2\,c{b}^{2}\arccos \left ( cx \right ) \ln \left ( 1-i \left ( cx+i\sqrt{-{c}^{2}{x}^{2}+1} \right ) \right ) +2\,ic{b}^{2}{\it dilog} \left ( 1+i \left ( cx+i\sqrt{-{c}^{2}{x}^{2}+1} \right ) \right ) -2\,ic{b}^{2}{\it dilog} \left ( 1-i \left ( cx+i\sqrt{-{c}^{2}{x}^{2}+1} \right ) \right ) -2\,{\frac{ab\arccos \left ( cx \right ) }{x}}+2\,cab{\it Artanh} \left ({\frac{1}{\sqrt{-{c}^{2}{x}^{2}+1}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} 2 \,{\left (c \log \left (\frac{2 \, \sqrt{-c^{2} x^{2} + 1}}{{\left | x \right |}} + \frac{2}{{\left | x \right |}}\right ) - \frac{\arccos \left (c x\right )}{x}\right )} a b + \frac{{\left (2 \, c x \int \frac{\sqrt{-c x + 1} \arctan \left (\sqrt{c x + 1} \sqrt{-c x + 1}, c x\right )}{\sqrt{c x + 1}{\left (c x - 1\right )} x}\,{d x} - \arctan \left (\sqrt{c x + 1} \sqrt{-c x + 1}, c x\right )^{2}\right )} b^{2}}{x} - \frac{a^{2}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \arccos \left (c x\right )^{2} + 2 \, a b \arccos \left (c x\right ) + a^{2}}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{acos}{\left (c x \right )}\right )^{2}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \arccos \left (c x\right ) + a\right )}^{2}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]